package gov.tax.rti.base.widget;

import com.bstek.dorado.annotation.ClientObject;
import com.bstek.dorado.annotation.ClientProperty;
import com.bstek.dorado.annotation.IdeProperty;
import com.bstek.dorado.view.annotation.Widget;
import com.bstek.dorado.view.widget.form.trigger.DropDown;

@Widget(name = "HalfYearDropDown", category = "Trigger",
dependsPackage = "gdgs-base-halfyear-dropdown")
@ClientObject(prototype = "dorado.widget.HalfYearDropDown",
shortTypeName = "HalfYearDropDown")
public class HalfYearDropDown extends DropDown {
	private String returnType;
	private int yearstart;
	private int yearend;
	private String preEditor;
	
	@ClientProperty
	@IdeProperty
	public String getPreEditor() {
		return preEditor;
	}

	public void setPreEditor(String preEditor) {
		this.preEditor = preEditor;
	}

	@ClientProperty
	@IdeProperty(
			enumValues = "start,end,code,entity")
	public String getReturnType() {
		return returnType;
	}

	public void setReturnType(String returnType) {
		this.returnType = returnType;
	}

	@ClientProperty
	@IdeProperty
	public int getYearstart() {
		return yearstart;
	}

	public void setYearstart(int yearstart) {
		this.yearstart = yearstart;
	}
	
	@ClientProperty
	@IdeProperty
	public int getYearend() {
		return yearend;
	}

	public void setYearend(int yearend) {
		this.yearend = yearend;
	}
	
}
